package com.education.user.mapper;

import com.education.user.pojo.SysRoleMenu;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface SysMenuRoleMapper extends Mapper<SysRoleMenu> {


    /**
     * 新增角色和菜单关联
     *
     * @param roleId 角色id
     * @return 结果
     */
    @Select("select menu_id  from sys_role_menu\n" +
            "        where role_id = #{roleId} ")
    List<Integer> selectMenuIdsByRoleId(Integer roleId);

}
